﻿@model nanoCMS.Core.WebUI.Models.ViewModels.UserLogOn

@using System.Web.Mvc
@using Microsoft.Web.Mvc.Html
@using nanoCMS.Core.Resources
@using nanoCMS.Core.WebProviders.HtmlHelpers

@{
	AjaxOptions ajaxOptions = new AjaxOptions
	                          	{
	                          	 UpdateTargetId = "validationSummaryLogin", 
                                 OnSuccess = "ajaxFormSuccess" 
	                          	};
}


@using (Ajax.BeginForm("Login", new { area = "Core", controller = "User" }, ajaxOptions, new { id = "loginForm"}))
{
    <div class="wrap">
    <div id="validationSummaryLogin"></div>
	<fieldset>
			<label for="Core.Email">@Translation.Email</label>
			<input name="Email" id="Core.Email" type="email"/>
    </fieldset>
    <fieldset>
			<label for="Core.Password">@Translation.Password</label>
			<input name="Password" id="Core.Password" type="password"/>
	</fieldset>
    <input type="submit" class="login btn-blue" value="@Translation.LogIn"/>
    <span>@Html.Link(Translation.Register, "Register", new object(), new object())</span>
    <span>@Html.Link(Translation.ForgotPassword, "ForgotPassword", new object(), new object())</span>
    <div class="clearfix"></div>
    </div>
}

